package com.java2104.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
//出勤情况实体类
public class RCAttendance {
    private int id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date checkDate;//日期
    private RCClass rcClass;
    private int attendancePersonNum;//实到人数
    private int absencePersonNum;//缺勤人数
    private float attendanceRate;//出勤率
    private RCUser rcUser;//
    private String remark;//缺勤备注

    public RCAttendance() {
    }

    public RCAttendance(int id, Date checkDate, RCClass rcClass, int attendancePersonNum, int absencePersonNum, float attendanceRate, RCUser rcUser, String remark) {
        this.id = id;
        this.checkDate = checkDate;
        this.rcClass = rcClass;
        this.attendancePersonNum = attendancePersonNum;
        this.absencePersonNum = absencePersonNum;
        this.attendanceRate = attendanceRate;
        this.rcUser = rcUser;
        this.remark = remark;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public RCClass getRcClass() {
        return rcClass;
    }

    public void setRcClass(RCClass rcClass) {
        this.rcClass = rcClass;
    }

    public int getAttendancePersonNum() {
        return attendancePersonNum;
    }

    public void setAttendancePersonNum(int attendancePersonNum) {
        this.attendancePersonNum = attendancePersonNum;
    }

    public int getAbsencePersonNum() {
        return absencePersonNum;
    }

    public void setAbsencePersonNum(int absencePersonNum) {
        this.absencePersonNum = absencePersonNum;
    }

    public float getAttendanceRate() {
        return attendanceRate;
    }

    public void setAttendanceRate(float attendanceRate) {
        this.attendanceRate = attendanceRate;
    }

    public RCUser getRcUser() {
        return rcUser;
    }

    public void setRcUser(RCUser rcUser) {
        this.rcUser = rcUser;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "RCAttendance{" +
                "id=" + id +
                ", checkDate=" + checkDate +
                ", rcClass=" + rcClass +
                ", attendancePersonNum=" + attendancePersonNum +
                ", absencePersonNum=" + absencePersonNum +
                ", attendanceRate=" + attendanceRate +
                ", rcUser=" + rcUser +
                ", remark='" + remark + '\'' +
                '}';
    }
}
